<template>
  <div class="my_drawer_wrap">
    <!-- 抽屉 开始 -->
    <uni-drawer ref="showRight" mode="right" :mask-click="true">
      <div class="draw_wrap" :style="{ paddingTop: paddingTop + 'px' }">
        <scroll-view scroll-y="true" :style="{ height: styleMainH + 'px' }" class="">
          <slot></slot>
        </scroll-view>
      </div>
    </uni-drawer>
    <!-- 抽屉 结束-->
  </div>
</template>

<script>
import { uniDrawer } from '@dcloudio/uni-ui'
import navmixin from '@/mxins/nav.js'
export default {
  components: { uniDrawer },
  mixins: [navmixin],
  props: {},
  data() {
    return { searchValue: '' }
  },
  mounted() {},
  methods: {
    // 展开
    showDrawer() {
      this.$refs.showRight.open()
    },
    // 关闭
    closeDrawer() {
      this.$refs.showRight.close()
    },
  },
}
</script>

<style lang="scss" scoped></style>
